package work.mediway.mdm.biz.mapper.patient;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

import work.mediway.mdm.biz.vo.patient.SuspectPatientDetailVO;
import work.mediway.mdm.biz.vo.patient.SuspectPatientListVO;
import work.mediway.mdm.biz.dto.patient.PatientSuspectDTO;
import work.mediway.mdm.biz.entity.patient.PaSuspectPatient;

/**
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2020/12/21
 */
@Mapper
public interface PaSuspectPatientMapper extends BaseMapper<PaSuspectPatient> {
    /**
     * 查询相似患者信息
     *
     * @param page       Page<SuspectPatientVO>
     * @param suspectDTO PatientSuspectDTO
     * @return List<SuspectPatientVO>
     */
    List<SuspectPatientListVO> pageSuspectPatient(@Param("page") Page<SuspectPatientListVO> page, @Param("suspect") PatientSuspectDTO suspectDTO);

    /**
     * 查询相似关联患者信息
     *
     * @param patPatientId String
     * @return List<SuspectPatientDetailVO>
     */
    List<SuspectPatientDetailVO> suspectPatientDetail(@Param("patPatientId") String patPatientId);
}